import request from '@/utils/request';

export const getResourcePages = (data) => request({
  method: 'POST',
  url: '/boss/resource/getResourcePages',
  data,
});

export const getAllCategory = () => request({
  method: 'GET',
  url: '/boss/resource/category/getAll',
});

export const getResourceInfo = (id) => request({
  method: 'GET',
  url: `/boss/resource/${id}`,
});

export const DeleteResource = (id) => request({
  method: 'DELETE',
  url: `/boss/resource/${id}`,
});

export const updateResource = (data) => request({
  method: 'POST',
  url: '/boss/resource/saveOrUpdate',
  data,
});

export default {};
